package be.vanbaelvandaele.tuxremote;

import android.content.Context;

public class VlcMediaPlayer implements MediaPlayerInterface {

	private Context context;
	
	public VlcMediaPlayer(Context context) {
		this.context = context;
	}
	
	@Override
	public String next() {
		return SshService.get(context).executeCommand("qdbus org.mpris.vlc /Player Next");
	}

	@Override
	public String playPause() {
		return SshService.get(context).executeCommand("qdbus org.mpris.vlc /Player Pause");
	}

	@Override
	public String previous() {
		return SshService.get(context).executeCommand("qdbus org.mpris.vlc /Player Previous");
	}

	@Override
	public String stop() {
		return SshService.get(context).executeCommand("qdbus org.mpris.vlc /Player Stop");
	}

	@Override
	public String setVolume(int volume) {
		return SshService.get(context).executeCommand("qdbus org.mpris.vlc /Player VolumeSet " + volume);
	}

}
